<?php
class Category_AjaxController extends Clu_Controller_Action_Hvn
{
	
	public function createUserCategoryAction()
	{
		
		$data = $this->_request->getParams();
		//require_once (APP_PATH.'/modules/admin/Model/Weight.php');
		$this->mWeight = new admin_Model_Weight();
		if($this->_request->isXmlHttpRequest())
		{
			$results = $this->mWeight->getDataWidgetPosition($data);
			$ret[] =  array('id' => 0,
			 		    	'name' => t(97));	
			foreach($results as $d)
			{
					$ret[] =  array(
                           		 'id' => $d['id'],
						 		 'name' => $d['master_request']
                   			);
			}
			$this->_helper->json->sendJson($ret);
		}
	}
	
}